package database;

import helperClasses.Book;
import helperClasses.ClassInfo;
import helperClasses.Member;

import java.util.Vector;

public interface Database
{
	boolean addCourse(ClassInfo cla);
	
	boolean deleteCourse(ClassInfo cla);
	
	boolean addBook(Book book);
	
	boolean deleteBook(Book book);
	
	String buyBook(Book book);
	
	Vector<Vector<Object>> searchBook(String search);
	
	boolean addMember(Member member);
	
	boolean updateMember(Member member);
	
	boolean removeMember(Member member);
	
	boolean isMember(String name, String password);
	
	Member getMember(Member mem);
	
	void onClose();
	
	Vector<Vector<Object>> getUserList(String name);
	
	Vector<Vector<Object>> getBookList(Member member, String name);
}
